package a.h;

import a.i.jb;

import java.math.BigDecimal;
import java.text.DecimalFormatSymbols;
import java.util.Locale;

final class fd
  implements jb
{
  static final BigDecimal a = new BigDecimal(-1.797693134862316E+308D);
  static final BigDecimal b = new BigDecimal(1.7976931348623157E+308D);
  private final BigDecimal c;
  private final BigDecimal d;
  private final char e;
  static Class f;
  
  fd(Locale paramLocale, double paramDouble1, double paramDouble2)
  {
    this(paramLocale, new BigDecimal(paramDouble1), new BigDecimal(paramDouble2));
  }
  
  fd(Locale paramLocale, BigDecimal paramBigDecimal1, BigDecimal paramBigDecimal2)
  {
    this.e = new DecimalFormatSymbols(paramLocale).getDecimalSeparator();
    this.c = paramBigDecimal1;
    this.d = paramBigDecimal2;
  }
  
  public String a(Double paramDouble)
  {
    if (ec.t == 0) {}
    return a(paramDouble, f == null ? (fd.f = b("java.lang.Double")) : f);
  }
  
  public String a(Object paramObject, Class paramClass)
  {
    return (ec.t != 0) || (paramObject != null) ? paramObject.toString().replace('.', this.e) : null;
  }
  
  public Double a(String paramString)
  {
    if (ec.t == 0) {}
    return (Double)a(paramString, f == null ? (fd.f = b("java.lang.Double")) : f);
  }
  
  public Object a(String paramString, Class paramClass)
  {
    int i = ec.t;
    if (((i == 0) && (paramString == null)) || (paramString.length() == 0)) {
      return null;
    }
    BigDecimal localBigDecimal = new BigDecimal(paramString.replace(this.e, '.'));
    if (i == 0) {
      if (localBigDecimal.compareTo(this.d) > 0) {
        localBigDecimal = this.d;
      }
    }
    if ((i != 0) || (localBigDecimal.compareTo(this.c) < 0)) {
      localBigDecimal = this.c;
    }
    return new Double(localBigDecimal.doubleValue());
  }
  
  static Class b(String paramString)
  {
    try
    {
      return Class.forName(paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.fd

 * JD-Core Version:    0.7.0.1

 */